#include "junix.h"

int main(int argc, char **argv)
{
	if(argc!=2)
		err_quit( "Usage:%s file", argv[0] );

	key_t key=ftok(argv[1],0);
	if(key==-1)
		err_sys("ftok");

	int shmid=shmget(key,1024,IPC_CREAT);
	if(shmid==-1)
		err_sys("shmget");

	return 0;
}

